package com.ruoyi.exam.service.impl;


import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.exam.domain.entity.exentity.TaskScoreQueryDTO;
import com.ruoyi.exam.domain.entity.exentity.TaskScoreResultDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.exam.domain.entity.exentity.ExamStatic;
import com.ruoyi.exam.domain.entity.exentity.UserExamScore;
import com.ruoyi.exam.mapper.StaticsMapper;
import com.ruoyi.exam.service.IStaticsService;


/**
 * 考试统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
@Service
public class StaticsServiceImpl implements IStaticsService {
    @Autowired
    private StaticsMapper staticsMapper;

    public List<ExamStatic> getExamStatistics(Long deptId) {
    return staticsMapper.getExamStatistics( deptId);
    }
    public List<UserExamScore>getUserExamScore(Long deptId) {
        return staticsMapper.getUserExamScore(deptId);
    }

    @Override
    public List<TaskScoreResultDTO> getLowScoreTaskList(TaskScoreQueryDTO  queryDTO) {

        return staticsMapper.selectLowScoreTaskResult(queryDTO);
    }

}
